
<div class="row">
	<div class="col-sm-12" style="width: 99%;">
		<div class="nest" id="treeClose">
			<div class="title-alt">
				<h6>Cập nhật thông tin tài khoản</h6>
			</div>

			<div class="body-nest" id="tree" style="min-height: 490px">
    				<div class="row">
                        <div class="col-sm-5">
                        <div class="nest" id="validationClose">
 
                            <div class="body-nest" id="validation">
                                <div class="form_center" style="width: 90%;">
                                    <?php if(validation_errors() || @$error || @$zero):?>
                                    
                                    <div class="alert alert-danger">
                                        <button data-dismiss="alert" class="close" type="button">×</button>
                                        <span class="entypo-attention"></span>
                                        <strong>Oh lỗi!</strong>&nbsp;&nbsp;<?php echo validation_errors(); ?>
                                        <?php if(@$error):?>
                                        <br />
                                        <?php echo $error?>
                                        <?php endif;?>
                                        <?php if(@$zero):?>
                                        <br />
                                        <script>
                                        jAlert('Cập nhật thành công.', 'Thông báo', function()
                                        {
                                            window.location = '<?php echo site_url().'/passwd'?>'; 
                                        });
                                        </script>
                                        <?php endif;?>
                                        
                                    </div>
                                    <?php endif;?>
                                    <?php if(@$status):?>
                                    <div class="alert alert-success">
                                        <button data-dismiss="alert" class="close" type="button">×</button>
                                        <span class="entypo-thumbs-up"></span>
                                        <script>
                                        jAlert('Cập nhật thành công.', 'Thông báo', function()
                                        {
                                            window.location = '<?php echo site_url().'/passwd'?>'; 
                                        });
                                        </script>
                                    </div>
                                    <?php endif;?>
                                    
                                    
                                    <?php $att = array('id' => 'contact-form', 'class' => 'form-horizontal'); echo form_open('', $att);?>
                                        <input type="hidden" name="id" value="<?php echo $id?>" />
                                        <input type="hidden" name="type" value="<?php echo $type?>" />
                                        <fieldset>
                                            <div class="control-group">
                                                <label class="control-label" for="subject">Tài khoản</label>
                                                <div class="controls">
                                                    <input type="text" class="form-control" value="<?php echo @$dataedit->username ? @$dataedit->username : $this->input->post('username')?>" name="username" id="username" />
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="subject">Mật khẩu </label>
                                                <div class="controls">
                                                    <input type="password" class="form-control" value="<?php echo $this->input->post('password')?>" name="password" id="password" />
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="subject">Họ tên <small style="color:  red;">(*)</small></label>
                                                <div class="controls">
                                                    <input type="text" class="form-control" value="<?php echo @$dataedit->fullname ? @$dataedit->fullname : $this->input->post('fullname')?>" name="fullname" id="fullname" />
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="subject">Email <small style="color:  red;">(*)</small></label>
                                                <div class="controls">
                                                    <input type="text" class="form-control" value="<?php echo @$dataedit->email ? @$dataedit->email : $this->input->post('email')?>" name="email" id="email" />
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="subject">Số điện thoại <small style="color:  red;">(*)</small></label>
                                                <div class="controls">
                                                    <input type="text" class="form-control" value="<?php echo @$dataedit->mobile ? @$dataedit->mobile : $this->input->post('mobile')?>" name="mobile" id="mobile" />
                                                </div>
                                            </div>
                                            <?php if($level == 2):?>
                                            <div class="control-group">
                                                <label class="control-label" for="name">Địa điểm</label>
                                                <div class="controls">
                                                    <?php echo $fview->selectOptionArray($place, @$dataedit->add, 'chosen-select chosen-container', 'address[]', '', 0, 'data-placeholder="Chọn 1 hoặc nhiều địa điểm..." multiple="multiple" style="width:100%;" disabled="disabled" tabindex="8"');?>
                                                </div>
                                            </div>
                                            <?php endif;?>
                                            <div class="form-actions" style="margin:20px 0 0 0;float: right">
                                                <button type="submit" class="btn btn-primary">Đồng ý</button>
                                            </div>
                                        </fieldset>
                                    </form>

                                </div>
                            </div>



                        </div>
                    </div>
                </div>
			</div>
		</div>
        
	</div>
    <style>
    #pagination{
        
    }
    #pagination a{
            padding: 3px 10px;
            margin: 10px 2px;
            border: 1px solid #CCC;
            background: #CCC;
            color: #FFF;
    }
    #pagination strong{
            padding: 3px 10px;
            margin: 10px 2px;
            border: 1px solid #CCC;
    }
    #box-map{
        float: right !important;width: 348px;margin: 15px;margin-right: 0px;
    }
    </style>
    
    <style>
    .close-map{
        width: 50px;position: absolute;top: 29%;z-index: 999999;background: #FFF;padding: 6px;cursor: pointer;color: red;
    }
    .show_msg{
        right: 37px;width: 94px;
    }
    </style>
</div>